# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=cuetools
pkgver=1.4.1
pkgrel=0
pkgdesc="cuetools is a set of utilities for working with cue files and toc files"
url="https://github.com/svend/cuetools"
arch="all"
license="GPL-2.0-only"
makedepends="autoconf automake libtool bison flex"
options="!check" # no tests
subpackages="$pkgname-doc"
source="cuetools-$pkgver.tar.gz::https://github.com/svend/cuetools/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="dc81e6ec756f9d040dd913e8f340be136d68619caa24bdec21364f94b4fc0ffcbcf21325c7fd53c9230d6d70a2856b45a32c5ca7f41ec76fa47298bf226d959e  cuetools-1.4.1.tar.gz"
